package com.liu.service.intf;
import com.liu.dto.ServeTrainItemDto;
import com.liu.vo.PageBeanJson;
import com.liu.vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface ServeTrainService {
    PageBeanJson<ServeTrainItemDto> list(int page, int pageSize);
    PageBeanJson<ServeTrainItemDto> search(int page,int pageSize,ServeTrainItemDto serveTrainItemDto);
    R insert(ServeTrainItemDto serveTrainItemDto);
    R update(ServeTrainItemDto serveTrainItemDto);
    R delete(int id,int t_id);
    R deleteBatch(int[] ids);
    List<ServeTrainItemDto> selectAll();
    R savaBatch(MultipartFile file) throws IOException;

    R trainSelect();
}
